package com.example.javasample.service.impl;

import com.example.javasample.domain.BlogDO;
import com.example.javasample.mapper.BlogMapper;
import com.example.javasample.service.IBlogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * BlogServiceImpl
 *
 * @author Kylin
 */
@Service
public class BlogServiceImpl implements IBlogService {

    @Autowired
    private BlogMapper blogMapper;

    @Override
    public List<BlogDO> list(BlogDO blog) {
        return blogMapper.list(blog);
    }

    @Override
    public BlogDO detail(Long blogId) {
        return blogMapper.detail(blogId);
    }

    @Override
    public int batchAdd(List<BlogDO> blogList) {
        return blogMapper.batchAdd(blogList);
    }

}
